Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Date Format #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

New Date Format #11

wants to merge 3 commits into from

Conversation

richard4339
Copy link

This tool is very helpful, but the date options preconfigured were missing a valuable one that I use regularly; a full fledged mm/dd/yyyy formatted date (The shortdate built in now chops off the leading zero on months). I added this as %dm.

@wbreetz
Copy link

wbreetz commented Apr 27, 2012

Hey Richard, This is great stuff. Any idea how do do a combination that results in YYYY-MM-DD? That would be super helpful for creating filenames that have the date in them and then sorting by filename to get the latest version of the file.

@richard4339
Copy link
Author

Well, my addition was this:

    IfInString,ReplacementText,`%dm
    {
        FormatTime, XDate, , MM/dd/yyyy
        StringReplace, ReplacementText, ReplacementText, `%dm, %XDate%, All
    }

If you wanted to add YYYY-MM-DD, you'd simply need another block below it, I chose %dm randomly, so I'll go with %dw. And to play it safe, I'll create a new WDate variable to hold the formatted date.

    IfInString,ReplacementText,`%dw
    {
        FormatTime, WDate, , yyyy-MM-dd
        StringReplace, ReplacementText, ReplacementText, `%dw, %WDate%, All
    }

That should be enough right there, though I haven't tested it myself. If I get a chance and it works, I'll add it to the pull request.

@richard4339
Copy link
Author

I tested it, it works. %dw is now good to go.

@wbreetz
Copy link

wbreetz commented Apr 27, 2012

Very cool!! Thanks Richard!

@mikesolo
Copy link

mikesolo commented Jan 3, 2013

Richard

How do I add your script to texter?

@richard4339
Copy link
Author

@mikesolo I'm sorry for never responding to your question. You can either run the modified Texter.ahk instead of the executable, or you can build a new executable file using the bundled exe creator in AutoHotKey. The conversion program in it is called Convert .ahk to .exe. Simply plug in your Texter.ahk in the Source field, grab the Custom Icon from the resources folder. Then just convert, and it will put a new texter.exe in your main folder. An important note: if you have the 64bit version of AutoHotKey and create an exe from it, that exe will not work on a 32bit OS.

image

I am not positive, but I assume this is how @adampash compiled his originally.

@adampash
Copy link
Owner

Yep, that's the one. :)

On Wed, Jul 10, 2013 at 12:48 PM, Richard notifications@github.com wrote:

@mikesolo https://github.com/mikesolo I'm sorry for never responding to
your question. You can either run the modified Texter.ahk instead of the
executable, or you can build a new executable file using the bundled exe
creator in AutoHotKey http://www.autohotkey.com. The conversion program
in it is called Convert .ahk to .exe. Simply plug in your Texter.ahk in the
Source field, grab the Custom Icon from the resources folder. Then just
convert, and it will put a new texter.exe in your main folder. An important
note: if you have the 64bit version of AutoHotKey and create an exe from
it, that exe will not work on a 32bit OS.

[image: image]https://f.cloud.github.com/assets/100804/776139/e4c2fa5c-e97e-11e2-8f42-291926f82f4c.png

I am not positive, but I assume this is how @adampashhttps://github.com/adampashcompiled his originally.


Reply to this email directly or view it on GitHubhttps://github.com//pull/11#issuecomment-20756046
.

@richard4339
Copy link
Author

@adampash you don't have any plans to release a new version do you? The help links in it are bad now too since Lifehacker changed their story structure.

@richard4339
Copy link
Author

@adampash, I'll throw this at you too, since ultimately you'll have to approve the pull requests.

  • Once again, the help links are no longer valid due to Lifehacker's recent redesign. If you like, I'd be happy to update my pull request with changed links to new wiki pages with the old content, or just fix the links. The content is still there, its just that Lifehacker's redirect doesn't work with the anchor added. For example: Basic Usage points here while it should point here
  • If I do all this and add a new version 0.6.1 or 0.7 executable, would you be ok with that? I know in your article talking about moving the source here, you said it was because you wanted community involvement, but so far, without anything being approved, I personally don't really feel like I'm helping. I'm happy to fix some of this stuff and add it, but I don't want to step on anyone's toes.

@mikesolo
Copy link

mikesolo commented Aug 9, 2013

@richard4339 thanks for your reply

I tried to give it a go and downloaded the source files and converted the ahk to an exe but if I run it I get the following error message

Error: A Goto cannot jump from inside a function to outside

Line# 1590, Goto, Homepage

If I click on texter.ahk I get a similar message

The file I downloaded was https://github.com/adampash/texter/archive/master.zip

Any ideas on what the problem is would be much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants